<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreatePayOrdersTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('pay_orders', function(Blueprint $table)
		{
			$table->integer('id', true);
			$table->string('body', 100)->nullable();
			$table->string('detail', 100)->nullable();
			$table->string('out_trade_no', 100)->nullable();
			$table->string('total_fee', 100)->nullable();
			$table->string('openid', 155)->nullable();
			$table->string('attach', 100)->nullable()->comment('类型（游戏，还是 ）');
			$table->string('is_pay', 100)->nullable()->default('0')->comment('是否支付');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('pay_orders');
	}

}
